<div id="login">
    <div id="log_top">
        <div id="log_logo"></div>
        <p>用户登录</p>
    </div>
    <div id="log_bottom">

            <ul>
                <if condition="$_SESSION['teacherid']">
                    <li >
                        <span>欢迎您:</span>
                        <span>{$_SESSION['teachername']}</span>
                    </li>
                    <li>
                        <span>时间:</span>
                        <span>2015-09-09</span>
                    </li>
                    <li>
                        <span>登陆IP:</span>
                        <span>192.168.1.1</span>
                    </li>
                    <li>
                        <b><a id="change" href="{:U(GROUP_NAME.'/Index/editmemberinfo')}">更改信息</a> </b>
                        <!--<input type="button" value="更改信息" id="change" onclick="location.href='http://www.baidu.com'">-->
                        <b><a id="out" href="{:U(GROUP_NAME.'/Index/logout')}">退出</a></b>
                        <!--<input type="button" value="退出" id="out">-->
                    </li>
                    <else />
                    <form action="{:U(GROUP_NAME.'/Index/run_login')}" method="post">
                    <li>
                        <span>用户名:</span>
                        <input type="text" name="mem_name" id="username">
                    </li>
                    <li>
                        <span>密码:</span>
                        <input type="password" name="mem_password" id="password">
                    </li>
                    <li>
                        <span>验证码:</span>
                        <img id="code" src="{:U(GROUP_NAME.'/Index/verify')}" onclick="javascript:void(change_code(this));" title="点击切换验证码" />
                        <input type="text" name="code" id="verify" onclick="javascript:void(change_code(document.getElementById('verify')));">
                    </li>
                    <li>
                        <div id="zhu"><a href="{:U(GROUP_NAME.'/Index/addmember')}">注册</a></div>
                        <input type="submit" value="登陆" id="deng">
                    </li>
        </form>
                </if>

            </ul>

    </div>
</div>